package demo.homework;

import demo.until.FileUtil;

import java.io.FileInputStream;
import java.io.IOException;

import static demo.until.FileUtil.FILE_PATH;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        FileUtil.checkPath(FILE_PATH);

        FileInputStream fis = new FileInputStream(FILE_PATH + "a.txt");

        int ch;

        while ((ch = fis.read()) != -1) {
            System.out.print((char) ch);
        }
    }
}
